close parent file descriptors, fixes dead lock