Make sure filter command quits if canceled