Quitting A Game From C++

How to quit from the console. Running console commands from C++. Quitting from a button press. APlayerController - Reference