--headless
is not strictly mandatory, but you want it.
Without it, the document is still converted (note “convert /…/filename.doc → /…/filename.txt using text” message on stdout) but an empty GUI is also started (and the command blocks until you close the GUI).
More importantly, headless conversion silently does nothing if any LO is already open; see How to NOT connect to a running instance for a solution.