removed web socket close code