using a different locking strategy
kill missbehaving programs, needs to be adjusted for stack growth