Modified to ensure closing of threads

associated with the particular client.  Now those threads should be
exiting and their termination is logged.