def METHOD_NAME(self):
    """
    Close the debugger and focus it's UI (to bring dialog boxes of it into foreground).
    Returns False if the debugger was not closed.
    """
    if not self.is_opened():
        return True
    assert self._opened_main_controller is not None
    return not self._opened_main_controller.on_main_window_delete_event()