move stop task method to task client model, see #2