Call websockets ready callback with length -1 at close, to signal that the ws is closing.