retry logic on puts and deletes

DO NOT MERGE.