add file descriptor 0/1 protection from RT 3.8.13 upgrade, RT#18040