Use Java's queue implementation for more robust failure handling
Merge pull request #613 from hudmol/index-queue-tweaks

Use Java's queue implementation for more robust failure handling