Fix closing jmol panel.