close nonstandard fds before forking