exit hook is now called 'on_exit'