23090 - Possible thread leak in Shell

In the past when Shell was called from a long running thread the guard
thread spawned by systemu would be blocked in a sleep forever.

This commit attempts to kill the guard thread after systemu has
finished.