Added try/catch to handle error when configs or models folders are not found.