Added destructor to client