Bug fix: make sure to reset the abort flag back to false