Added decrement counter whenever connection to a peer is lost