rename throws exception on error