The exception is misleading, there can be other causes (e.g. that one mentioned above in the comment) why renaming has failed