Fix timeout default for --query
Validate packet sending result