Log the exception instead