Closes the WebSocket connection gracefully and removes the whole editor from the DOM.

Introduced: X14.

<void> TXTextControl.removeFromDom()