Restarting router, background thread fix