Minor improvements.
Fix race conidition in which a pre-maturely exiting test runner command (such as adb -e shell am ..., which has a 10s timeout) aborts the test run. Instead, use a 10s timeout on the TCP listener. This ensures that in the event of a test runner crash the App exits correctly.

Ideally all test runners would ensure to send a heartbeat to avoid timeouts.