Fix console output and clear timeout when build is removed