webrepl.html: Detach websocket from term when closed.
webrepl.html: Detach websocket from term when closed.

Stops error `WebSocket is already in CLOSING or CLOSED state.` from
showing when you interact with a disconnected terminal

micropython/webrepl,micropython/webrepl,micropython/webrepl