Recovery: wrapped os.rename by try/except for catching os.rename exception.