Moving print messages into logging messages.
try to open_url for ntimes.