catch errors of windmove