finallyClose cannot wrap createSession
Merge branch 'close-session'