Log exceptions to the error log.