Cleaning up unmanaged resources.