It was a major failure by Prime Minister Shinzo Abe when Australia decided to buy its new submarines from France.