[TASK] Add try-catch in public API