Export disconnect function.