Fix a error which causes us eventually to run out of inotify instances.