Added garbage collection to 2010 s2 and 2009 s4, to prevent memory leak