Enhanced gps error handling