Don't allow indexing to block forever
Make sure indexing is complete before finishing job