Await container termination in docker kill test