Exit with appropriate code depending on outcome of service start