Refinements to export dialogue.

Now like the list dialogue it is only instantiated when used. It is also
completely torn down when removed, and does not listen to any query
global state.