Bug fix: workaround possibly having too many open sockets