Implement make_failed