Wait for input before exiting