Add timeout to client - fix for #7965

Add a timeout when trying to connect to the server, otherwise sometimes it just hangs

See issue #7965 

Signed-off-by: Doug Davis <dug@us.ibm.com>