modify _disconnect to public method disconnect