Fix race in RemoteTaskRunner that could lead to zombie tasks.
Merge pull request #644 from metamx/rtr-bugs

Fix race in RemoteTaskRunner that could lead to zombie tasks.