Introduced lean way of terminating a cli handler, including correct output of error messages to stderr