fix signal when exitting the debugger