cc-bmean: added generic exception catcher