             error = createErr("During: SQL Step \(sqlStr)", status: Int(status))
         }
 
-        statement?.close()
         return error
     }
 

            error = error1
            statement = nil
        }
        if let error = error {
            // Special case: Write additional info to the database log in the case of a database corruption.
            if error.code == Int(SQLITE_CORRUPT) {

            return Cursor<T>(err: error)
        }

        return FilledSQLiteCursor<T>(statement: statement!, factory: factory)
    }

    func writeCorruptionInfoForDBNamed(dbFilename: String, toLogger logger: XCGLogger) {
