Add exception handling to urlretrieve
Better exception handling