callback outside of try/catch