Implements try-catch and throw for escapes.