added a log message
converted print to QgsLogger due to error of bad descriptor (https://trac.faunalia.it/geosisma/ticket/401)
added other exit log message