Added closeSession()