Fix: services: Use the supplied error code instead of errno which may have changed