Fix test for handler close.