Correct the cleanup of FilterOutputStream