duchainify: Exit cleanly on invalid user input
--debug
The error is shown on the outputview, so mark it as such

This way we don't get an ugly messagebox, when it's in hte output view
Merge branch '1.7'