added a retry loop around commiting a migration transaction #1032