Users could benefit from having 'Restart Now' and 'Restart Later' options added to the restart dialog when CyREST is updated.
This is the internal mechanism that would let that work:
CyShutdown shutdown = serviceRegistrar.getService(CyShutdown.class);
shutdown.exit(0, true);