Finish the app in the Editor?

Is there anything like Debug.Break() but which finishes the app instead of pausing it?

You can use EditorApplication.isPlaying or eventually EditorApplication.ExecuteMenuItem(“Edit/Play”)