Unexpected duplication of scene

Everytime when I started and finished testing a game in the hierarchy section this weird things appears http://scr.hu/3lxl/6i5g8. This is happening when this script is attached to player.

void OnDestroy() {
    SceneManager.LoadScene("Main Scene");

How can I fix it?
Sorry for my bad English. Iā€™m not a native speaker :slight_smile:

do not use that kind of code in OnDestroy. if you must though, toggle a bool in OnApplicationQuit and check for it in OnDestroy first.