Close FSMonitor in when DirTreeCtrl destroyed.
Specify timeout for read_events().