make sure exceptions are logged in batch writer