After destory set is locked to false
add retry count for CheckGuard process
Merge pull request #11 from mihaibuzgau/wip2

add retry count for CheckGuard process
use static linking for debug