Add try-catch around extractor main.