added abort functionality for serial flows