Make sure the web socket session is closed when the other side disconnects