Fix crash during BT shutdown

 * Socket may be null if we're shutting down, avoid a crash here.

Change-Id: I9a90a2e9cc8486d65351da1f7bd2cf34e986b80a
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1