Gave quit-button functionality.