Recognize custom close method #1130