Check whether GC is running

Fix #1.