print before GC

Signed-off-by: o.pitton <olivier.pitton@gmail.com>