catch factorie error