fix gh#21 - 0.5.0 portspec changes break client.port() resulting in KeyE...

This fixes gh#21.