Improve replication controller errro handling.

Fix #1582
nit: flatten these to one line each?

{ "8080" },
...