You're using the IVI driver I see. So, you select the resource name, run the VI, stop it normally, and then simply run it again? And after running it a few times, you see the multiple sessions? Your program looks fine and I can't explain why you would have all of those sessions created. You don't have an error indicator wired up. Add one and see if there might not be an error generated. If there's an error, it might the reason that the close is not working. Have you tried using the LabVIEW driver instead of the IVI one? Unless you want to use the class driver, I'm not convinced there is ever a good reason to use an instrument specific IVI driver instead of the native LabVIEW one.