Store connection ID if passed