Don't start a session when finalize() is called.

If the session hasn't already been started, then there is no need to
start one in finalize().
Merge pull request #719 from akrabat/session-finalize

Don't start a session when finalize() is called.