Use a prefix for debuginstall tempfiles.
This way you know where the files came from if they don't get removed.
#header#<title>Mercurial Error</title></head><body><h2>Mercurial Error</h2><p>An error occured while processing your request:</p><p>#error|escape#</p>#footer#