Proper exception handling when file not found