exit after garbage collection