Since the speedometer is simply getting a signal from the PCM and is a volt meter, it will go to zero when the engine is off. If it is stuck at 30 you just need a new speedometer gauge.