Make hostname positional argument
Handle common exception from requests