Added Exit menu to all activities, added way to stop while loop in thread.