Cleaned up in file opening. If it fails, exit (with one exception)