Fixed lost shared_ptr on conn