Cease polling if container has died

Small bugfix.