Make sure session is started

Make sure session is started before saving it.
Fixes #58