Shut down ProcessThread on shutdown.