make average tracking only update on successful builds
remove last change and handle SIGINT signal