The GDM stop has to be done after getting into terminal and not before.