Changed return type for hotplug callbacks. connect can now return non-zero indicating failure.