try this:

function test_event()

{
swit(event_type == EVENT_BLOCK) sys_exit("bye bye ...");
}
switch (event_type)
{
case EVENT_BLOCK:
sys_exit("bye bye ...");
return; //try with return and without(just remove this line
}


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)