make tasks interupt cleanly