Add methods to check if a cluster/session instance if closed

JAVA-114 #fixes