Added destruction on finalization, fixes #445