Trigger close after selected. Related to #566.