Error handling in the renamer