It would be friendly to return the error and log it from the calling context.