Setting the master hook to exit immediately if one of the hooks fails