Ensure one time WebSocket closing.