Log the exception too