build: tasks: Add quicker cleanup of tasks

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>