Proper cleanup on session destruction