generic writer exception handling, writer stopped writing.