isClosed reimplemented and to some degree tested.