added session.close()