Update disconnect to avoid null pointer