bugfix: adjust window for windows.
bugfix: Close window after FLASH load error.
Merge pull request #149 from otiai10/bugfix/adjustwindow

bugfix #148