[Azoth Xoox] Restart reg on socket error.

Probably finally closes #1205 (it works already otherwise).