Fix a problem where interrupting the client during a list could leave the
server child process hanging indefinitely.