Updated the code for CORE changes to authentication. Also, throwing
connection failure runtime exception.