Flush bulk request when stopping the river
When we stop the river and still have documents in bulk, we currently simply ignore these docs.

We need to flush the bulk request when stopping the river.
Closes #27.