remove the big server grab and replace it by local on needed server grab
do not delay repair of damaged window
make server ungrab asynchorne
fix some memory leak