while connected to the console; CNTRL+ALT+K

or the 'shutdown' or 'reboot' command can be issued via the api