Adding some cleanup code for the NodeClient to disconnect automatically when debugging is stopped.