Fix closed status when leaving activity.