Corrected exit delays, added attempted repair on discovering a corrupted db