wrap parse_pe call in try-catch