I don't know if I'm missing something here...
but what's wrong with running your laptop directly off the mains without a battery and unplugging the cord if necessary so the computer shuts down?
edit: i found it:
http://www.cru-inc.com/products/wiebetech/hotplug_field_kit/