Added start of disconnect logic.