restart application when crashed with an exception