Expose isClosed to clients.

It would be nice to be able to read this bool in various cases. Is there any reason to keep it private? It didn't seem like it needed a lock protection or anything.