Force closed ws handles

* So, after the ws terminates and we're cleaning up, I need to
  force the socket closed. Good to know.
* also regressing to having a single db instance for handlers