Implemented hashCode() in Aggreator to silence an Eclipse warning.
Fix resource leak warning