add logging to stop_worker method