Cancelling random exception in packet receiving