move callback out of try/catch, catching callbacks exceptions and that is not the intent