Cleans-up some resources.