Beyond killing the desktop process (only advisable if you are using the machine in a headless way e.g., over ssh), I’m not sure there is much more you can do. If you want to do this you can try something like sudo service gdm stop.