Print stack trace of error when failing to rename

Needed to track down a issue with the renaming process