Added a timeout condition for retrying a transaction.