Perhaps check if the container exists but is stopped, and if so, send some special response so we'll stop waiting?