moved warning to inside command block so it doesn't get printed out each time.
fixed the stop instances to continue stopping instances even if it receives an error.