add onExit