fix to prevent ResizeCitrixWindow from exiting entire script