I have a program created under the Empty Project option it builds, runs and actually works. When I run in batch file
i.e start /w prog.exe
it runs then doesn't terminate. In the task manager it is still running even when closed in windows.

Is the following the right way to end the program or should I place another qualifier on the start command line?

++++++++++++++++++++++++++++++++++++++++++++

srInput.Close()
fsInput.Close()

End

End Sub