And fix websocket not correctly detected has closed. Ref https://github.com/GNS3/gns3-gui/issues/1331