Keep file watcher in memory to prevent losing file events
cherry-pick https://github.com/chiiph/leap_mx/commit/78f6ca775dc42eba69f2dc1e134ca360c0813aff