launch on-stop handler in its own thread

when file node is released