tightening up code for geocoding client where listening to error events on the request