def stop_app(self, bundle_id):
        """
        Note: Both ways of killing the app may fail, nothing responds or just closes the
        app to the background instead of actually killing it and no error will be reported.
        """
        try:
            if not self.is_local_device:
                raise LocalDeviceError()
            TIDevice.stop_app(self.udid, bundle_id)
        except:
            pass
        finally:
            self.driver.app_stop(bundle_id=bundle_id)

        Note: Both ways of killing the app may fail, nothing responds or just closes the
        app to the background instead of actually killing it and no error will be reported.
        
airtest/core/ios/ios.py