Add check whether finalize was already called.