Bug 1065974 — Broadcast a terminated:closed message on websocket close.

https://bugzilla.mozilla.org/show_bug.cgi?id=1065974