Added more error handling for mgrs service