Made Session._attempted_to_open_file property private.

The property is used only in tests.