Closed
Description
The fix for #2776 will work by reversing the filtered files on exceptions and when the adapter is stopped.
But this will not be a complete solution because unprocessed files can still be filtered if the server loses power.
Moving the filter logic until as late as possible will mitigate the extent of this problem.