Bug #7: the WS connection was closed while an action was pending