I guess you should be checking the `isClosed` flag here instead?