public void removeTaskEventListener(HeadlessJsTaskEventListener listener){
  mHeadlessJsTaskEventListeners.remove(listener);
}

public void removeTaskEventListener ( HeadlessJsTaskEventListener listener ) { mHeadlessJsTaskEventListeners . remove ( listener ) ; }
unregister a task lifecycle event listener .
