fix: shutdown the tokio reactor correctly when there is an error
fix: shutdown the tokio reactor correctly when there is an error

pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference,pact-foundation/pact-reference