code: protected void onRuntimeError(final Stage primaryStage, final DolphinRuntimeException runtimeException) {
          Assert.requireNonNull(runtimeException, "runtimeException");
          LOG.error("Dolphin Platform runtime error in thread " + runtimeException.getThread().getName(), runtimeException);
          Platform.exit();
      }
docs: This method is called if the connection to the Dolphin Platform server throws an exception at runtime. This can
  for example happen if the server is shut down while the client is still running or if the server responses with
  an error code.
  
  @param primaryStage     the primary stage
  @param runtimeException the exception