get_gracefully function

Get data from the internet with graceful failure