The call to finalize() was accidentally removed in the last MR, this is to add it back in. Thanks @fsiegert for spotting this.
cc @ewelina