Quit button implementation.