improved session destruction