gDownloadManager.listener = null; 
gDownloadManager.removeListener(gDownloadListener); 
function Shutdown() {  gDownloadManager.listener = null;  var pbi = Components.classes["@mozilla.org/preferences-service;1"]                      .getService(Components.interfaces.nsIPrefBranch2);  pbi.removeObserver("browser.download.", gDownloadPrefObserver);  var observerService = Components.classes[kObserverServiceProgID]                                  .getService(Components.interfaces.nsIObserverService);  observerService.removeObserver(gDownloadObserver, "dl-done");  observerService.removeObserver(gDownloadObserver, "dl-cancel");  observerService.removeObserver(gDownloadObserver, "dl-failed");    observerService.removeObserver(gDownloadObserver, "dl-start");    observerService.removeObserver(gDownloadObserver, "xpinstall-download-started");    observerService.removeObserver(gDownloadObserver, "xpinstall-dialog-close");}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/4207a26c24c534f3cae66806f445304a30d1d748/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js