Use try-catch statement around K-specific code in Design assembly