event handler

need help as to why the exit status is not trigger eventhandlers to run.