Added teardownSession method