@kacfengine: there is only a bunch of functions that are signal-handler safe: ```man 7 signal```. We don't follow the rules completely (```Log()``` for example needs to be audited), but at least lets make sure new code is correct. We'll have to audit signal handlers soonish...

```exit()``` specifically calls a bunch of ```atexit()```-registered functions and more, so is pretty dangerous I think.