Rather close the loop when terminating the kas process. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>