Added error check when open tries to open a file that is not found in the host directory