bring application back to bug-free state