Use `is_closed` instead of the now nonexistent `closed`.