In that case, wire it to ignition and ground and it will run only with the engine running.
Some people like to install a switch to leave it running in the staging lanes with the car off, then you'd need a relay to keep the switch from frying.
And yes, the shaft spinning with the impeller staying put is bad