Add an error check for non-running containers