Fix bug when disconnect and clean server.js