loadfile try catch