adding method to unRegister all task