Adding some exception handling for MDL loaders, and correct file open for linux