Call a cleanup method for the build task on signal