don't get stuck at deregister if connection lost.
exit if retry policy fails.