Viewer: JPanel now closes properly