BugFix closeSession