Added exception handling to opening file in player