fix bug in close method should be close the session.