Actually its not systemui that kills the task (its run as user, it doesn't have privileges to do it), but window manager. Why it takes so long to kill something (and some cases fail) is it plays ping-pong with target app with WM_PINGs and only non responding apps get booted.