Close file descriptors early in parent app.