Cleaned up resources.