Don't exec /mnt/autorun or the EXIT trap doesn't happen.
Mop up a few more bugs.