When lazily loading entities, session will open itself if closed and then subsequently close itself. SqliteTemplate.open() and SqliteTemplate.close() are now idempotent.