now we do the things before exiting