The code for this is from rentzsch/ForceQuitUnresponsiveApps.
Fixes appium issue #1306 by ending Instruments if it freezes.
ForceQuitUnresponsiveAppscontains the app that monitors for unresponsive events and ends the process.freeze2contains two test applications.freeze2will become unresponsive and will not be ended because it's not instruments.instrumentsis a renamedfreeze2and this will be ended because of the file name.