Remove unused code.
Add more logging for worker errors.