Fix client disconnection, still have a problem when not closing correctly previous socket. close #1