Write all exceptions to log file