Added exit/logout recognition. Child exits.

The child process did not exit before. It now exits.