use same try/except for ungrab as for grab