removing fds after ssh process exits, solves the problem of 100% cpu after process exits