he remembered being able to think clearly even in the melee at the battle of bergen , but the thought that his dog , his gareth , could have fallen victim to the thing from the swamp overwhelmed him .