argv.p always has a value and fix port description
cmd is undefined in connection error callback