Using throw+ for error handling and handling hostname of instances