Added exception catching for directory events. This is intended to fix a possible crash of watchdog and never seeing file changes