fix ws.close