update worker and exit handler