expose Agent.stop() to JS to complete execution