exactly what they usaully doing because how is a dog meant to know if its dying!!! i heard once (it might be off Marley & me) that dogs go away to die, they go somewhere where they can die alone.
They scream at you. My friend's dog had a medical condition. Before it died, his behavior fitted the "mad dog" exactly (running around, bumping into things, foam at the mouth, etc.)