Reset unconfirmed messeges counter on connection close.