very basic quit functionality