JApplicationDaemon::shutdown

Method to shut down the daemon and optionally restart it.