Modified commit/abort sequence so that the commit/abort would be finished before releasing locks.
Finished first iteration of report.