Implement the recover of the original api keys file and the clean up of temp files