Resolution:
Recode your program so that RELEASE and RETURN operations are issued by the appropriate procedures.