debuggergdb: kill console with child process
Bug fix, when at the end of the debug, codeblocks terminates the process with the terminal without terminating the child processes.
For example, in the case of the xdg-terminal as terminal, the console itself that was launched by xdg-terminal (for example, xterm) remains hanging after the debug is completed.
Now, when the terminal is terminated, the process with all its subprocesses is terminated.