Bug #1565: Editor: Subviews are deleted on shutdown instead when they are closed

subviews now get destroyed on close