Added test to ensure correct loading of dipsatch checkpoint.
When dispatching during shutdown, we make sure that the process can cleanly shutdown.
Added logging TODO.
Added test for when headers collection is null.