using scoped session and adding teardown for session