Added System.gc() back and changed log.warn -> log.error for selected logs