Can a Test Case trap a failed API Request?

I’m using the Katalon “Web Services Request” feature and running it from a “Test Case”. There are times when our development team works on the test server and the “Test Case” fails with a “Unable to send request” error.

My question is: Is there any way that I can trap the error and gracefully end the “Test Case”?

I’ve tried the following code, but it does not work.

//Run the Web Request
try {
response = WS.sendRequest(findTestObject(‘’))
} catch(Exception e) {
//No op
KeywordUtil.logInfo("The API query did not run. ")
}

But I still get the error and the “Test Case” errors out.

ANy ideas from anyone?