Make sure GridWorker shuts down properly.