Close websockets if uaid can't be registered.

(Not in master for debugging purposes)