save exceptions to log file