added handling for socket error and KeyError
added debug for packet processing

Change-Id: I796546be9f3882d550b1e511f51b64dab26511b1
Signed-off-by: Jim Guichard <jguichar@cisco.com>