Both are not too hard to address.
If you have some sort of monitor program, you can detect when ignition power(ACC) goes away, then shutdown the PC in a graceful manner. The PC is running off from battery power to do this, of course. Very similar to a UPS based system.
Similarly, one can wake on ignition, and by having a startup item, start your program after the system starts up. If NT based, it is easy to configure the system to autologon and continue on.
JW