Quit button now works. All states are destroyed upon exit.