vPilot autoclose

Hello! How do I make vPilot auto close when exiting MSFS? It really bothers me because until I close the pilot manually, the steam still shows that I’m in the simulator. And I’m a bit tired so I want to automatize it