close prepared statement cursor explicitly