Fix bug in AQL that abort() was called after commit() for trx.