Free things up properly when we're done with them