Revert "Potentially removed a deadlock when unloading plugin appdomain"

This reverts commit bc192e09f07f338838340b6635ba9256a67e1805.
Modified Program so it does not block, but waits for exit.