fix error with exceptions being creating but not thrown
ensure that input streams are closed
fix possible race conditions and concurrency problems
prefer Integer.valueOf to constructor
remove possible file descriptor leak
fix broken regular expression
hide superclass field properly; avoid duplicate name