add handling for errors that occur whilst reserving jobs via the beaneater api
remove deprecation warning by requiring mocha/setup