If an app keeps closing on your mobile device, there are several ways to troubleshoot the problem and prevent it from happening.