The main method now uses a none 0 exit code in case of checkfailures or errors: Rework after review.