(#4) Make sure that we're stopping the domain before starting the
service resource.
Some more tidying.