proper error info when socket could not be created