Wrap log import into a transaction so that if it fails it is rolled back. Also display an error message indicating row failed on.