title: How to Exit primaryStage while opening a new stage in javafx
body: <p>I am trying to figure out how to exit the primaryStage in javafx while opening another stage
  upon clicking a button, what is the code to remove the primary stage?</p>