Incorreclty prompted user with IO error on open file - fixed