Changed user-agent to windows ffx25
added IOError exception