isClosed works except for with one very unlikely case.