Added exit menu and now thread quits