chg: defer shutdown in slCleanUp() and slKill()

(cherry picked from commit 147e86a78bc224078ef082c481a0eed0a8600d7f)

Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>