Disconnect if there is a validation error

I have no way of testing this.... I think.