refocus active cell on dialog close

if there is one.

Otherwise, the cursor is lost on kernel restart, etc.