Rescue and retry from errors in publishing

Panopticon will timeout for some registration requests, so we need to continue when
that happens and retry so that the script can run unattended out of hours.