Allow sending/receiving of APK files over bluetooth

Change-Id: Ibfc795005dc9c8054b044112feff4a17c24c5e27
Fix crash during BT shutdown

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

Change-Id: I9a90a2e9cc8486d65351da1f7bd2cf34e986b80a