FAM: Only shut down inotify notifier once
core: only shut down core once