Params io retries counter - fix.

It seems that we should clear retries counter before each io attempt.