fix rate measures blocking shutdown