A. The command below will close all network sessions

net session /delete

Learn more from "How do I close a Terminal Server connection?" and "How can I close a NetBIOS session after the program using it finishes?"