is there any function that i could use to pause a couple of seconds at the terminal before exiting the program. Say i tell the user do u wish to exit, my function automatically closes the window but i want something that could pause for a little while