move closed() before Dispatcher.InvokeShutdown
move closed() before Dispatcher.InvokeShutdown

signumsoftware/framework,avifatal/framework,AlejandroCano/framework,AlejandroCano/framework,avifatal/framework,signumsoftware/framework