Clean up the debug system