Removing the retry logic in flush, moving it to insert to test it out.