Programs compiled under the latest version when running in a windows subsystem in VS2013 Shell when exited by either the windows exit command from the drop down box or the "X" in the upper right hand corner of the window are still running in the background. The windows close as if the program has exited, but when viewed in task manager are still running. Exiting from within the programs works normally.
I noticed this during a rebuild after exiting with a click on the window "X" that the link would fail. Sure enough the program was still active when viewed in the process list.
I tested this on several different programs with the same results. On complier versions 15 and 16 the programs exited correctly.
Running with Windows 10 latest updates. Also occurs on Windows 7 system.