Clean up the retry and statistics middleware.