Better error handling within filters