Closed BufferedReader

Added try/catch blocks to close the BufferedReader.