Add garbage collector for build tasks with timeout (issue #1).