handle blank sockets correctly for cleaner debug output