The marathon defamation case of war veteran Ben Roberts-Smith has ended, with his lawyers telling a judge he is the victim of a war of words.