Error handling for corpus load errors

Needs to be tested