Support multiple open/close tasks
Fix bug related to multiple delete