Call finalize() instead of close(). Refs #20761