Clean up the async retry code