adding option to avoid mysql dump on halt