Gateway exception handling on shutdowns

Redis throws a few spurious errors on shutdowns. Catch them.