Added some more debug info for cleanup, and unlocked mutex on indexer exit