surround call to ip with try