Add API access exception handling