Spectrum db_optimize script terminates