Logging rather than priting exceptions and stacktraces.