Fix crash at close
Fix crash at close

LAL/LHCb-SPECS,LAL/LHCb-SPECS,robbep/LHCb-SPECS,LAL/LHCb-SPECS,robbep/LHCb-SPECS,robbep/LHCb-SPECS,robbep/LHCb-SPECS,robbep/LHCb-SPECS,LAL/LHCb-SPECS,LAL/LHCb-SPECS