Change error message of refused to send jobs to grid scheduler.
Raise TaskWorkerException. Fixes #4494
Merge pull request #4525 from juztas/patch-3

Raise TaskWorkerException. Fixes #4494
Merge pull request #4524 from AndresTanasijczuk/refusemsg

Change error message of refused to send jobs to grid scheduler. Fixes #4523.