Close the producer inline instead of deferring it.

This is a shot in the dark and I doubt it will actually fix anything, but it
should at least kick Travis.
Merge pull request #113 from Shopify/func-test-tweak

Close the producer inline instead of deferring it.