Tweaked packet error handling.