ALLJOYN-2490 Get disconnect reason after obtaining endpoint.

Change-Id: Ic4b1648a17565f967098c6b8bc383097c51a2267