The engine continues to run because you have one of the ammeter leads connected to an ignition source and one to a B+ source.
One lead must be very close to the alternator output stud and the other lead must be closer to the battery positive so that the meter can sense the voltage potential and indicate charge vs discharge.