Remove connection from broadcast connections before closing websocket