Adding better checking of contact id

connection ID passed back to client for better tracking of new
connection ID.