add logging for worker errors