processor load

I’ve noticed an interesting phenomenon: starting Firefox takes two cores less than a second. When I shut Firefox down, though, it sends three cores to 50% for ten to fifteen seconds. Anyone have any idea what’s causing that?