print stack trace when we run out of sockets

which is something that seems to happen far too often