It is not executing the "after activity" event

Hello, people,
My app is already calling another app, but when it terminates the activity, it is not executing the “after activity” event and is aborting the app and generating the error: “701 unable to load” when rerunning the app.
I need to test the return to redirect my app.

Need help.