In my case it was my antivirus/spyware (Fsecure) causing issues. I stopped all the related services. uninstalled, restarted, and reinstalled. now it's working and doesn't shut down spontaneously