Added code to handle an OAuth failure