DEV: Close transactions at the end of HTTP Requests.

Fixes #84
This should probable be a tempfile, not local