Added mutex around UDP communicatios