This adds the transaction handling to the connection and context handling. It will raise an error and inform the client if anything is going wrong with the transaction.