shell socket: return on error