Send SHUTDOWN message before disconnecting

/to @bajtos 

I'm also going to integrate this with the slnode chat example, so it can cause socket.io connections to be shutdown.