That should be done in a ``finally`` block, IMO -- so it is properly cleaned up in the case of networking failure.