Add Quit functionality