fix normal exit trap
fix retry in case repotrack produces error
Merge pull request #472 from mattymo/777revert-to-centos-fix2

fix normal exit trap