Initialize variable "finalize" to 1. We would otherwise
call finalizer function even if it is not initialized.