If I try to quit Firefox when it's "Looking up domain.com..." it beachballs (hangs), goes into "not responding" status, then finally quits. It does this without fail.

This is on Mac with the latest FF, but it's always been this way for me, even on Windows with FF and I've noticed it with other applications.

Is there any technical reason why this can't be handled better?