Modified pre/post/failed hooks so that any number of hooks can listen to
job types