add error-handling for worker errors