Explicitly close connections instead of letting them just fall out of scope. Goes double when errors are raised.