[PATCH v2 04/10] go: add return status to database close method