Added exception to open file