Add hook to prevent gearman doing work.

Can be used if a required resource temporarily goes away to stop accepting new jobs until the resource is back.

For example, it the DB or Redis goes down or is restarted it can stop accepting new jobs until the DB or Redis is back.