Stop the filter task when closing the filter panel.