VIVO-363 Write the exception to the log, first thing.