Use CloseGuard to check that disconnect() is called to free the resources allocated by connect(). finalize() will still call disconnect() but now also print out errors (if StrictMode enabled for feature). Bug: 28068773 Change-Id: I5f5847c0261ef9f79a21fdb935509a85761591cc (cherry picked from commit 9d55649613f6ea9926c6e6222965178e91cb501b)