Added a try and except in proper_urlopen

Oh and, added an extra print

(and gave a sample call)