Exit on mysql command failure