Close the container and then stop.