gradebook MDL-25713 now closing the recordset even when theres a problem