move setSuccess before fireWriteComplete