fixed deadlock in UDP connections. Still, UDP streams break after 5-10 secs. Needs further debugging.