fix deadlock on errors in the backup scripts
fixing reading out errors in the import script