add exception handler for C* parser