Disconnect if response code is wrong