add error detection and avoid force quit
Merge pull request #197 from altsai/bug_bid_issue

add error detection and avoid force quit
fix build id == latest issues in refreshPackage list
Merge pull request #198 from altsai/latest_invalid

fix build id == latest issues in refreshPackage list