Added a try/except to open_file

Cleanup to allow other tests to execute if this one fails.