Update android maven plugin to 4.0 release.
Briefly disconnect and reconnect VI when restarting trace file.

Fixed #212.