Fix incName; on Close signal, removeClientSink!

The 2nd change prevents the accumulation of ghost duplicate
ws connections on reloading browser.
close any existing websocket on window unload
debug page without loading external js
minor