BUG6595: Adding a retry for getting a transactionsafely