AutoGetDB can throw with a StaleDBVersion error.
Index builds rely on waiting until critical section to let exceptions throw. Anything thrown before that will cause the server to crash.
Use a DBLock then manually check the dbVersion under this exception handler.