Ensured dispose is being called.