close vote function