By default, when you close the Debugger window it attempts to abort, that is to call the abort restart.
Uncheck the Abort When Closed option only if you want to turn off this behavior.