Clear transaction queue before saving objects.
Try and catch all the database queries while importing.