Merge "Detach callbacks when closing filter."