Added exception handling to authentication to handle ICAT being down