protected boolean isStoppable() {
    return (isRunning() && getInternalLocator() != null);
  }
Determines whether the Locator can be stopped in-process, such as when a Locator is embedded in
an application and the LocatorLauncher API is being used.

@return a boolean indicating whether the Locator can be stopped in-process (the application's
        process with an embedded Locator).
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java