Able to destroy container after deleting a task