1) Fixed bug in hasRegisteredJobs() 2) Change stopForeground to have
more general message.