Cleanup inotify code