Delegate close method now gets called