waiting for container shutdown refs #10