Macron vows to stay in office until the end of his term