Implement end_scheduled_transaction