do a better job making sure all sub processes die if the router dies