Removed unnecessary disconnect logic.