save state when activity dismiss under exceptional condition