Release reaper thread

This change makes sure that:
* pools are properly garbage collected
* daemon reaper thread is released

Thanks for considering it!