Added a check to see if an upgrade response is returned from the server.