Finish adb tasks correctly when completed

Hi,

This pull request calls the callback passed into the `terminal` function.  Without it, adb tasks would hang since the callback in the higher level `run` command would never be called, which in turn means that `done()` would never be called.

Let me know if you have any feedback.