private void verifyAndClearStatus() throws Exception {
    final Status status = getStatus();

    if (status != null && status.state != SHUTDOWN) {
      throw new IllegalStateException(
          "JMX Agent exists but was not shutdown.");
    }

    deleteStatus();
  }
After parsing the command line arguments, spawn the Java VM that will host the GemFire JMX
Agent.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java