Proper session cleanup