Index: trunk/src/org/openstreetmap/josm/gui/MapFrame.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/MapFrame.java	(revision 1439)
+++ trunk/src/org/openstreetmap/josm/gui/MapFrame.java	(revision 1440)
@@ -144,4 +144,11 @@
         // remove menu entries
         Main.main.menu.viewMenu.setVisible(false);
+        
+        // MapFrame gets destroyed when the last layer is removed, but the status line background
+        // thread that collects the information doesn't get destroyed automatically.
+        if(statusLine.thread == null) return;
+        try {
+            statusLine.thread.interrupt();
+        } catch (Exception e) {}
     }
 
Index: trunk/src/org/openstreetmap/josm/gui/MapStatus.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/MapStatus.java	(revision 1439)
+++ trunk/src/org/openstreetmap/josm/gui/MapStatus.java	(revision 1440)
@@ -100,4 +100,10 @@
     ImageLabel distText = new ImageLabel("dist", tr("The length of the new way segment being drawn."), 8);
 
+    /**
+     * This is the thread that runs in the background and collects the information displayed.
+     * It gets destroyed by MapFrame.java/destroy() when the MapFrame itself is destroyed.
+     */
+    public Thread thread;
+    
     /**
      * The collector class that waits for notification and then update
@@ -294,5 +300,7 @@
         // The background thread
         final Collector collector = new Collector(mapFrame);
-        new Thread(collector).start();
+        thread = new Thread(collector, "Map Status Collector");
+        thread.setDaemon(true);
+        thread.start();
 
         // Listen to keyboard/mouse events for pressing/releasing alt key and
@@ -345,5 +353,5 @@
         return "Statusline";
     }
-    
+        
     @Override
     public void addMouseListener(MouseListener ml) {
Index: trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java	(revision 1439)
+++ trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java	(revision 1440)
@@ -197,5 +197,5 @@
 
     public Iterable<Object> start(final Reader in) {
-        new Thread(){
+        new Thread("XML Reader"){
             @Override public void run() {
                 try {
