Clean up things a bit when debugging is enabled.