wait for 3sec before close the terminal