Configure socket.io to do more polling but avoid obnoxious reconnects
Handle the automatic disconnect signal emitted when browser unloads