Attempt to clean up objects and encourage GC.