Added check to ensure that mysqldump failures are not silently ignored.