fixed bug where dialogs weren't being disposed on close, causing the application to not completely shutdown, causing potential memory leaks.