A program is terminated when the main procedure is terminated. Whether termination is normal or abnormal, control returns to the calling program. In the previous example, when control transfers from the C procedure back to the Contrl procedure, Contrl terminates. See Procedure termination for more information.