I'm not sure it's necessary to wait for container here, it just waits on the internal channel and returns the exit code after all, and timeout is already expires. If the process is stuck in the kernel (e.g. on some NFS share) and cannot die, wouldn't this effectively wait forever? (I'm honestly not sure what happens on waits in those cases though)