Maybe there's a firewall popup in the background, try switching to windowed mode.
Is it happening all the time on every server or just certain servers/maps?
Did this just start happening? What changed? (any new add-ons, hardware changes, etc?)
Did it actually crash or just freeze? How long did you wait? Sometimes re-lighting certain maps can take a long time.