In ice hockey, when a team is losing by a goal in the last few minutes, the coach usually pulls the goalie and replaces them with another player, leaving the net empty, but this doesn't matter since goal difference isn't as important as it is in a sport like football.
If they are losing by 2 goals (sometimes 3 in a playoffs game) they usually pull the goalie with about 2-3 minutes remaining.
If they are losing by 1 goal, they usually pull the goalie with about 90 seconds remaining.
However, I've seen in some situations, a team is losing by 1 goal, so they pull the goalie, but then the other team scores an empty net goal. Now the team is down by 2 goals, but where they would usually pull the goalie when losing by 2, they actually put the goalie back in.
Why is this done? Is it just because the empty net goal demoralizes the team? Or they think they have no chance of coming back from being 2 goals down with only a minute or so left (as opposed to the usual 2-3 minutes)?
Note: There are cases where the above doesn't apply, like yesterday Colorado were losing 1-0 against Detroit when Patrick Roy pulled the goalie with 3 minutes left (he often pulls the goalie very early) and the other team scored an empty net goal just after, but they kept the goalie pulled even though they were now 2-0 down (and the other team actually scored another empty net goal after that making it 3-0).