Handle and log exceptions on filechange handler