Ford says it will close down all operations by the end of this year in Japan and Indonesia, where it says it has no prospect of making a profit.