This belongs in the WS `onClose`