Added some debugging to the C version as well as the C++ version to check that the jslist_remove is also missing the hardware sink/sources when removing connections.