cleanup script, print stacktrace / error messages during import to the logfile