Little adjustments to automatically dispose resources.