Another go at error capturing.