More robust killing support within functions