Cleanup code to read inotify information.