fixed the 'Command out of sync' error caused by the mysql_optimize module not catching the mysql result.