Improved resource closing.