cod: optimize the startup script and make things more sane
Make DIE more instant
src/cod: Fix death process
src/cod: Track ERROR in the core

If ERROR is sent, might as well die and get it over with.