Locus API call encapsulated with try-catch to prevent app crash