A way to scan a data-matrix and exit the program.