try not to publish on error.