restart the application if it fails for one time