always call filter's shutdown routine on exit (bb#471)
additional check to skip broken filters