Trying to use the conatiner.wait api to block until the container exits but it returns right away. Any idea what's wrong: