Added destructor as Disconnect function