avoid NPE and fix closing of obsolete editors when deleting classification