The iPhone could not be restored. An unknown error occurred (9) This is an issue that occurred to my iPhone.

What is the recommended general fix for this?
I was able to fix this issue by plugging my iPhone into another Windows machine, then placing the iPhone back onto the original machine, then doing a restore on the iPhone.