Fixed routing termination problem. Now routers can be properly shutdown
and restarted.