Some thread cleanup added
Subject fd's to garbage collection with auto-close, since lifecycles
get too confusing otherwise.
Make the "clear" table in a waitSet weak to ensure it does not prevent
garbage collection of otherwise-impossible events.