BufferedReader closed after reading the entire file.