view.close supports optionally preserving DOM