ACCUMULO-1000 added conditional writer error handling and test for error handling