added destructor for cleaning up the _handle member