Clean up the debugger code