Fix issues with resource finalization