Only shutdown automatically if everything goes well.