Add state=drained to wait_for module.  The generic implementation utilizes the psutil module, but to avoid additional library dependencies Linux relies on processing the files /proc/net/tcp and /proc/net/tcp6.