Do not register a progress handler if it is not passed