Lazy resource clean-up.