Saying a goodbye message and waits for 5 sec before it exits the application