I forgot to give ItemSelectionDialog a exit() method, so it wasn't properly closing