[Bugfix] Hide warnings

If the host does not locally resolve we don't want a lot of php warnings before I get the error message.