Added garbageCollect option to timeout