As with libnative - is it best to leave this to the destructor or is there a nicer way of doing this?