write exception to logger, not stdout