on_exit again, still not working