Fixes: #2505 class_tabs should be cleaned
Fixes: #2507 import_complete_ldif error handling is broken