catch exceptions and bubble via api