Enabled disconnect on unload for socket.io