added a sleep time for letting the app terminate and then execute the relaunch.