duchainify: Exit cleanly on invalid user input