Fix Fixed the API access exception handling.