finallyClose cannot wrap createSession