Stop instance when creating AMI.