stratum: Deliver exact socket-error within the debug error message