Add HandClose listener