Better handling on router migration errors.

Now the same as other exec error handling.