websocket: close all connections when re-registering