Raise error when bulk execution encounters writeErrors