Added loads more error catching and fixed AirMonkey bug