Let django know that it should close its connection.

When storing measurements, the response object does not close its connections
on exit. Make sure that it does.