stopping pending tasks