Personally I think it would be better if the exit() function put the chip into deep sleep mode.
That is a very good idea.