retry logic on puts

DO NOT MERGE.
Missing indentation.