Added sub thread checking to timeout routine, will restart thread if they are no longer alive.