auto disconnect of socket.io