Removed unregister call from DeleteDataset (which leads to double free)