Allow slave functions to have optional ?fail parameter for errors.