Cleanup the debug code.