function utilCloseTuner(currentblock)
% CLOSETUNER  Close the PID Tuner

%   Copyright 2017-2020 The MathWorks, Inc.

    if (license('test','Simulink_Control_Design')==1)
        try
            h = slctrlguis.pidtuner.getInstance(currentblock);
            if ~isempty(h)
                h.close;
            end
        catch E %#ok<NASGU>
        end
    end
end
