#23: better handling of bad input: do not die and do log the debug log