Handles corrupted packets.