Fix the stopping/pending message when launching a slave

It currently always says the slave is stopping when it's launching an
instance. The while loop and switch have been modified so the
appropriate logging message appears now.