error_log and exception handling