added missing import
now ignoring errors while trying to delete error-output backup
Completed rename_on_error feature and added a test case for it.