Add create_if_error argument
Add stopped state