Cleans up a few leftovers.