exception handler on all file events