Initial conversion of the configure_failure_actions private method to FFI. Still needs a little work.