Change the implementation of collector, such collected commands are
automatically flushed rather than explicitly.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>