close all open file descriptors in daemon mode (except 0,1,2)