fix bug: Close browser throw Windows Error.