Add a can't-happen sanity check when closing a PEER.