should set/unset selection with try/finally