Details
Description
Right now, an interrupted call to close will result in deadlock: main thread waiting for reader thread to join, reader thread waiting on EOF from the fd.
(before waiting for reader threads to join, we probably were leaking threads)