Fix websocket_init on shutdown