retry logic on puts

DO NOT MERGE.
Same here.