Catch exception (delete log file)