OK I have an app which works great on my phone communicating in the background with the host file with which it exchanges information. All this happens without the users intervention or even knowledge as to how things are working - they are happy that way. The key thing here is that during the conversation with the host the file is open because the iPhone app is processing some of the data it picked up before putting its data into the record. All looks great with a good network. However when the network is poor the mobile can be left still with the host file visible (which it should never be) and the apps script seems to be abandoned since it should close the host file at the end of every branch. Is this possible or have I just not covered all the branches? How do I guard against the security implications of this?