fixed typo,  changing stop condition
Fix rapid deletion of entire inbox bug.
Clean up for release.