Added a SetErrorHandler method on the CloudWatchWriter to allow user defined error handling
Add SetErrorHandler for user defined error handling (#11) * Add SetErrorHandler for user defined error handling * Make the tests more robust * Update the github action * Remove check of error being nil as it's unnecessary * Make tests even more robust * Make tests even more robust as race can really mess with them