Fix #59 actually capture errors and report their details.