use onFinish instead of onAfterRun, parameter to set sender