Added local network listener to kill daemon or trigger other events.