log the exception