Changed the logic in the is_closed property.