bugfix for worker error event, so it outputs error to callback