Implementing quit button.