fix bug in task client for conneted decorator
fixed bug with kwargs on register/unregister