Added try catch to file stream loader