terminate recursive execution