As for losing your Firefox state when your OS desides to exit it without your consent, check out SessionSaver. Unfortunantly, I currently do not have the URL for it, so hopefully Google will be able to help you track it down.
del.icio.us- tommoor/tinycon - GitHub
- laktek/realie - GitHub
- cramforce/node-worker - GitHub
- creationix/do - GitHub
- phreeza/cells - GitHub
- mwild1/xmppjs - GitHub
- jo/quilt - GitHub
- simonw/dogproxy - GitHub
- ialexi/Ace - GitHub
- jed/utfn - GitHub
- gjritter/nodewiki - GitHub
- bunions1/fallingsand-webgl - GitHub
- simonw/ratelimitcache - GitHub
- davisp/cascade - GitHub
- DocSavage/bloog - GitHub
- docco.coffee
- karthick18/inception - GitHub
- nornagon/nodecraft - GitHub
- welterde/nodecraft - GitHub
- Jonty/Idiocy - GitHub
you can find the download and a feature list at http://adblock.ethereal.net/alchemy.cgi/SessionSaver