refactor ON_HALT, add THEKERNEL->is_halted() for modules that just need to test it...