CHAIN dosn't works correktly

A program that calls another program via CHAIN ​​does not terminate and ends up hanging. In some other programs, this process works correctly.
Does anyone have any ideas?

I have the solution: the calling procedure is a browse screen with the "Initiate Thread" option enabled. The "Chain" functionality works correctly when this option is disabled....