Stopping sound loop on die

If I’m shooting from my Airboat Gun SWep and die during shooting the looped sound doesn’t stop. Any idea how to fix it?
Code:



	if self.Owner:InVehicle() && (self.IsSndPlaying == false) then return end
	
	if self.Owner:KeyPressed(IN_ATTACK) && (self.IsSndPlaying == false) && (self.Weapon:Clip1() > 0) then
	self:EmitSound("Airboat.FireGunLoop")
	self.IsSndPlaying = true
	end
	else if (self.IsSndPlaying == true) then
	self:StopSound("Airboat.FireGunLoop")
	end
	
	if self.Owner:KeyReleased(IN_ATTACK) && !(self.Weapon:Clip1() <= 0) && (self.IsPrimaryDone == true) then
	self:EmitSound("Airboat.FireGunRevDown")
	self.IsPrimaryDone = false
	end
	
	if !self.Owner:KeyDown(IN_ATTACK) then
	
	self:StopSound("Airboat.FireGunLoop")
	if self.AmmoRegen <= CurTime() then
		if self.Weapon:Clip1() <= 99 then
			self.Weapon:SetClip1( self.Weapon:Clip1() + 1 )
			end
			self.AmmoRegen = CurTime() + (GetConVarNumber("jb_abgun_ammoregen_delay"))

	end
	end