Changed default to print to stdout
Wrap fetching of url in simple try except