Made it possible to access UDP-socket in order to trap errors. Added test to verify trapping works.
Merge pull request #13 from mahan/master

Made it possible to access UDP-socket in order to trap errors. Added test.