The developer should be able to define a maximal execution time for any ABAP Scheme Evaluation. If the time needed is larger, a TIME_OUT should occurs within the Workbench without ABAP Short Dump
ABAP Unit can also Limit the execution time of an ABAP Unit test. This is the functionality to replicate
Class CL_AUNIT_CLASSTEST_SESSIONFE
Method __CANCEL_RFC