CheckAbort

WMA link


CheckAbort[expr, failexpr]

evaluates expr, returning failexpr if an abort occurs.

Catch
CompoundExpression