Add in some UDP error checking