Added functionality to Checkmate's quit button.