Dispose the SingleWindowDisplay window on close
Previously, if such a Coloc 2 window was ever created and shown,
even if later closed, ImageJ would not quit properly afterward.
Two changes here which are intertwined:
- All java.awt.Window instances need their dispose() method called when they are intended to go away, or else the JVM will not shut down. This is the exception to the rule with Java, where normally the programmer does not need to care at all about cleaning up anything. But AWT windows are special.
- The WindowListener created in Coloc_2 was responding to windowClosed events, not windowClosing events, but for some reason, windowClosed never fired. Unregistering the window and disposing it during windowClosing does work, though.