WIP on FDWatcher
poll_fd and a test for the same
Fix an assertion failure caused by double close on exit