Edge case where fsWriter would not get closed