Added resiliance for temporary inconsistency during shutdown
Another edge-case
Final safety check inside loop
Merge pull request #16 from benashford/master

Minor changes to the main loop for certain shutdown scenarios