ref #6925 fix potential NPE
ref #6925 Parts with "non-restore" tag are closed when context stops
fix #6776 ref #6745 Parts with tag "nonRestore" will not be persisted