adding teardown method for stateful session