cancel tasks but allow them finish on shutdown, fixes #56