There seems to be no obvious way to see if a session has been shutdown. I don't see anyway to check the status of the session. The JDBC connection interface provides 2 such methods; isClosed and isValid. What do you think about adding a similar method to the Session class?
Appears that I forgot to close this but this has been committed a few days ago.