Add protection against an access-after-free issue if cancel() is called
after a device connection has been closed.

Test: Existing tests will show if there is a chancel to cancel()
behavior expectations.
Fixes: 132319116

Change-Id: Ide7a41eca41b68868af93131dcd2155648e9fa8f
2 files changed