Add simple ability to capture errors