re-flash the firmware image
I don't see why it wouldn't be like any previous embedded OS; just re-flash the stock firmware and start over if you mess the thing up that badly. I've done a couple of good ones on my Maemo devices leading me to revert back to a stock firmware. (in teh case of the N900, it has a very nice "backup to SD" function that recovers user data cleanly)