retry publish on error