optimizations. allow proxy cleanup when dialogs are closed