Fix: Apply close connection after disconnect or new connection with same id