mechanism to dispose daemon without breaking nio2 semantics
(cherry picked from commit 9a6c71436082c11f2004a795f2b2326a15f9a26b)