Add exception wrapper for async API functions