in src/Runtime.js [181:188]
_setDefaultExitListener(invokeId, markCompleted) {
BeforeExitListener.set(() => {
markCompleted();
this.client.postInvocationResponse(null, invokeId, () =>
this.scheduleIteration(),
);
});
}