Automatically Switch Between Headphone Jack and Speakers When Unplugging Headphones?

This is defintely an issue of the OS. If you run Win10 you might wanna consult this article: