Handled web socket close event.