better tear down of javafx platform on app exit