[sr-dev] git:master:90284a0f: ratelimit: close file pointer in case of scan error