make sure we close client on redirect