run GC every 10 commands in console mode only
fixed crash due to querying of context property outside of isolate