fix duplicate message on ping regression

* cleaned up db.max_channels cruft
* added ping interval checks
** NOTE: need to check Socket.Close() doesn't seem to actually close the
    socket.
* increased recv buffer size for sniffer
Correctly shut down socket.

* Created error for Too Many Pings
* properly terminate the socket from the server side.