Removing dependency on pscx during install
Exiting powershell the right way so the engine exit events are fired