perhaps just scrap the match all together and just do:

    if (watcher.asInstanceOf[ActorRefScope].isLocal == ifLocal)
      watcher.tell(terminated, self)