handle WindowManager$BadTokenException